package com.chixing.day10_hashcode_exception;

import com.chixing.day10_hashcode_exception.exception.BalanceNotEnoughException;

public class AccountTest {
    public static void main(String[] args) throws BalanceNotEnoughException {
        Account account1 = new Account();
        account1.setAccBalance(100);

        Account account2 = new Account();
        account2.setAccBalance(20);
        account1.tansfer(150,account2);
        System.out.println(account1.getAccBalance());
        System.out.println(account2.getAccBalance());
    }


}
